﻿<%@ WebHandler Language="C#" Class="Product_ListSanPhamMuaKem" %>

using System;
using System.Web;
using HNG.Portal.BLL;
using HNG.Portal.DAL;
using HNG.Portal.DAL.EntityClasses;
using HNG.Portal.DAL.FactoryClasses;
using HNG.Portal.DAL.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
using System.Text;
using System.Data;
public class Product_ListSanPhamMuaKem : IHttpHandler
{
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/html";
        StringBuilder sb = new StringBuilder();
        int PID = Convert.ToInt32(context.Request.QueryString["id"].Trim());

        DataTable _dt = new TblSanPhamManager().be_selectSanPhamMuaKem(PID);

        if (_dt != null)
        {
            sb.Append(HNG.LIB.Ajax.JSONHelper.FromDataTable(_dt));
        }

        context.Response.Write(sb.ToString());
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}